package com.it.smn.divide.service;

import com.it.smn.divide.dao.UserDao;
import com.it.smn.divide.entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author sunmannian
 * @ClassName com.it.smn.divide.service.UserService
 * @Date 2020/8/27 9:53
 * @Version V1.0
 * Description  <请输入一句话描述该类功能>
 * Copyright (C) 北京中电兴发科技有限公司  since 2020/8/27
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public boolean save(UserEntity userEntity) {
        userDao.save(userEntity);
        return true;
    }


    public UserEntity getOne(String id) {
        UserEntity userEntity = userDao.selectOne(id);
        return userEntity;
    }
}
